
body{
  padding:0;
  margin:0;
}

.container{
  display: flex;
  flex-wrap:wrap;
  margin:0 auto;
}


.container > header {
  width: 100%;
  padding:15px;
  border-radius: 20px 20px 0 0;
  background-color: #efefef;
}

/* 导航 */
.container > nav {
  width: 100%;
  background:linear-gradient(to bottom,#eee,black);
  margin:auto;
}

.container > nav  a {
  text-decoration: none;
  line-height: 20px;
  padding: 10px;
}

a:link, a:visited, a:active {
  color: #fff;
}

a:hover {
  font-size: 13pt;
}

.li-1, .li-2, .li-3 {
  list-style: none;
  position: relative;
}

.li-1:hover > ul,
.li-2:hover > ul,
.li-3:hover > ul {
  display:block;
}

/* 主栏与右边栏 */
.box {
  min-height: 200px;
  box-sizing:border-box;
  background-color: #efefef;
}


.main {
  width: 80%;
  border-right: 5px solid #333;
}

.h1{
  width:100%;
  font-size: 16pt;
}

.product-list > .product {
  margin: 8px;
  text-align: center;
  border:3px solid #aaa;
}

.product > h4{
  margin:5px;
}

.product > p {
  margin:3px;
  color: #666;
}


.sideline {
  width: 20%;
  text-align: center;
}

.links {
  text-align: center;
  min-width:90px;
  min-height:120px;
  border:3px double #888;
  margin: 20px auto 0 auto;
}

.image {
  width: 50px;
  height: 50px;
}

.sideline > span {
  line-height: 50px;
}

.openbutton{
  position: absolute;
  left:-40px;
  font-size: 24pt;
  font-weight: bold;
  background: #eee;
}

/* 页脚 */
.container > footer{
  width: 100%;
  padding:15px;
  border-top: 5px solid #333;
  border-radius: 0 0 20px 20px;
  background-color: #efefef;
}

.container > footer > p {
  margin:3px;
  font-size:6pt;
  color: #666;
  text-align: center;
}


@media (min-width:800px) {
  .container{
    min-width: 800px;
    max-width: 1200px;
    min-height: 500px;
  }

  /* 导航 */
  .container > nav > a {
    display: none;
    text-align: center;
  }

  .li-1, .li-2, .li-3 {
    margin:0px;
    padding:0px;
    text-align: center;
    display: inline-block;
  }

  .li-1 > ul,
  .li-2 > ul {
    display:none;
    width: 50px;
    padding: 0px;
    margin: 0px;
    position: absolute;
    background:linear-gradient(to left,#888,black,#888);
  }

  .li-1 > ul {
    top: 35px;
  }

  .li-2 > ul {
    top: 0px;
    left: 50px;
  }

  /* 主栏产品——flex */
  .product-list {
    display: flex;
    flex-wrap:wrap;
  }

  .product {
    width:80px;
    height:120px;
  }

  .product > img {
    width:70px;
    height: 70px;
  }

  .product > p {
    font-size:9pt;
  }

  /* 侧栏按钮不显示 */
  .openbutton {
    display: none;
  }
}


@media (max-width:799px) {
  .container{
    min-width: 500px;
    max-width: 799px;
    min-height: 300px;
  }

  /* 导航 */
  .container > header h2,
  .container > header p {
    display: none;
  }

  .container > nav > a {
    display: block;
    text-align: left;
  }

  .container > nav > ul {
    padding-left: 10px;
    display: none;
  }

  .container > nav > ul.open {
     display:block;
     position: left;
  }

  .li-1 > ul,
  .li-2 > ul {
    padding-left: 30px;
    display: none;
  }

  /* 主栏产品单列放大显示 */
  .product-list {
    display: block;
  }

  .product {
    width:150px;
    height:200px;
  }

  .product > h4 {
    margin:10px;
    font-size:16pt;
  }

  .product > img {
    width: 140px;
    height: 120px;
  }

  .product > p {
    margin: 5px;
    font-size:12pt;
  }

  /* 侧栏内容动态滑入 */
  .links {
    position: relative;
    right: -100%;
    transition: right 1s
  }

  .links:hover {
    right:0;
  }
}
